package com.xc.ezplan.admin.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xc.ezplan.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lixingchen
 * @date 2022/11/19
 * @description 七牛云文件存储表
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="admin_qiniu_content")
@Data
@ApiModel(description = "七牛云文件存储实体")
public class AdminQiniuContent extends BaseEntity {
    /**
     * 内容ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "内容ID")
    private Long id;

    /**
     * 配置ID
     */
    @ApiModelProperty(value = "配置ID")
    private Long configId;

    /**
     * Bucket 识别符
     */
    @ApiModelProperty(value = "Bucket 识别符")
    private String bucket;

    /**
     * 文件名称
     */
    @ApiModelProperty(value = "文件名称")
    private String name;

    /**
     * 文件大小
     */
    @ApiModelProperty(value = "文件大小")
    private String size;

    /**
     * 文件类型：私有或公开
     */
    @ApiModelProperty(value = "文件类型：私有或公开")
    private String type;

    /**
     * 文件url
     */
    @ApiModelProperty(value = "文件url")
    private String url;

    /**
     * 文件后缀
     */
    @ApiModelProperty(value = "文件后缀")
    private String suffix;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}